﻿@model Seven.Entity.SysUser
@{
    ViewBag.Title = "ManageIndex";
}
<script src="~/Scripts/views/User/UserManage.js"></script>
<div id="userTabs" class="easyui-tabs" data-options="fit:true,border:false">
    <div id="managePanel" data-options="title:'用户管理',selected:true,refreshable:false,enableConextMenu:false">
        <div class="easyui-layout" data-options="fit:true">
            <div data-options="region:'west',split:true,border:false,minWidth:150,maxWidth:180,title:'公司部门列表'" style="width: 160px; border-right-width: 1px;">
                <ul id="tree"></ul>
            </div>
            <div data-options="region:'center',border:false" style="border-left-width: 1px;">
                <div class="easyui-layout" data-options="fit:true">
                    <div data-options="region:'north',title:'搜索条件',border:false" style="height: 70px;">
                        <div style="padding: 4px;">
                            <form id="queryFm" name="queryFm" method="post">
                                <table border="0" style="padding: 1px; margin: 0px; width: 100%;">
                                    <tr>
                                        <td style="width: 95px; text-align: right;">
                                            用户名或别名：
                                        </td>
                                        <td style="width: 130px;">
                                            @Html.TextBoxFor(m => m.UserName)
                                        </td>
                                        <td style="width: 75px; text-align: right;">
                                            姓名：
                                        </td>
                                        <td style="width: 130px;" colspan="3">
                                            @Html.TextBoxFor(m => m.Staff.RealName).ForQuery(QueryMethod.Like)
                                        </td>
                                        <td style="text-align: right;">
                                            <a id="aquery" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
                                        </td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                    <div data-options="region:'center',border:false">
                        <table id="dg"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @*<div id="recyclePanel" data-options="title:'用户回收站',href:'/User/RecycleManage',iniframe:true,bodyCls:'BigIframe'">
        </div>*@
    <div id="permissionPanel" data-options="title:'用户权限设置',href:'/User/PermissionManage',bodyCls:'BigIframe'">
    </div>
</div>
<script>
    $(function () {
        window.comlib.bindKeyDownToQueryFormInput();

        window.views.User.UserManage.initPage("@ViewBag.ButtonPermissions", "@ViewBag.CurrentUserID");
    });
</script>

